<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>拜访记录审批</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css">
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/gwat171/gwat171"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>
    <style>
        .mui-control-content {
            min-height: -webkit-fill-available;
        }

        .mui-bar-nav ~ .mui-content .mui-pull-top-pocket {
            top: 0;
        }

        .mui-table-view-cell:after {
            height: 0;
        }

        .mui-card {
            margin-bottom: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -3px;
            left: 10px !important;
        }

        .footBtn button {
            font-size: 15px;
        }

        .footBtn.flexl .mui-checkbox.mui-left label {
            padding-left: 36px;
        }

        .mui-scroll {
            position: inherit;
        }

        .wf-slider-bottom {
            bottom: 1px;
            top: 58px;
        }

        .xdcx .mui-card-header .mui-checkbox.mui-left label {
            padding-left: 0;
        }

    </style>

</head>

<body>
<!--搜索-->
<div class="mui-content mui-fullscreen">
    <div id="searchDiv" class="mui-input-row searchBox">
        <form action="javascript:app.returnFalse();">
            <i class="mui-icon mui-icon-search"></i>
            <input @search="toSearch" type="search" class="mui-input-clear" placeholder="客户|日期|业务员"
                   v-model.trim="keyword">
        </form>
    </div>

    <!--列表-->
    <div id="slider" class="mui-slider responseSlider xdcx wf-bottom-search wf-slider-bottom">
        <div id="sliderSegmentedControl"
             class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted shadow p10">
            <a class="mui-control-item" href="#item1mobile">
                未确认
            </a>
            <a class="mui-control-item" href="#item2mobile">
                已确认
            </a>
            <a class="mui-control-item" href="#item3mobile">
                已作废
            </a>
        </div>
        <div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-4"></div>
        <div class="mui-slider-group">
            <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
                <div id="scrollN" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <gwat171-listitem :model="items" :other="others"></gwat171-listitem>
                    </div>
                </div>
            </div>
            <div id="item2mobile" class="mui-slider-item mui-control-content">
                <div id="scrollY" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <gwat171-listitem :model="items" :other="others"></gwat171-listitem>
                    </div>
                </div>
            </div>
            <div id="item3mobile" class="mui-slider-item mui-control-content">
                <div id="scrollX" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <gwat171-listitem :model="items" :other="others"></gwat171-listitem>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--<div class="footBtn flexl shadow2" id="footer" v-show="index != 2">-->
<!--<div class="mui-checkbox mui-left" style="flex: 1;">-->
<!--<label>全选</label> <input type="checkbox" id="allCheck">-->
<!--</div>-->
<!--<button type="button" class="wf-pulic-bg edit" style="width: 50%;" @tap.stop="reconfirmlist" v-show="index == 1">-->
<!--取消确认-->
<!--</button>-->
<!--<button type="button" class="wf-pulic-bg edit" style="width: 30%;" @tap.stop="confirmlist" v-show="index == 0">确认-->
<!--</button>-->
<!--<button type="button" class="wf-second-bg edit" style="width: 30%;" @tap.stop="deletelist" v-show="index == 0">作废-->
<!--</button>-->
<!--</div>-->
<script id="item-template" type="text/x-template">
    <ul class="mui-table-view">
        <li class="mui-table-view-cell" v-for="(item,index) in model">
            <div class="mui-card">

                <div class="mui-card-header">
                    <div class="mui-checkbox mui-left" style="flex: 1 1 0%;">
                        <label>{{item.GWBHNAME}}</label>
                        <!--<input v-if="other.orgid&&item.gwbhorig&&other.orgid!=item.gwbhorig" type="checkbox" style="left: -5px; top:-16PX;"-->
                        <!--v-model="item.checked">-->
                    </div>
                    <p><i class="iconfont icon icon-0011 wf-font-color"></i>{{item.GWBH003}}
                        <!--{{item.gwbh004}}-{{item.gwbh005}}-->
                    </p>
                </div>
                <div @tap.stop="showDetail(item)" class="mui-card-content" style="padding: 10px 15px;">
                    <p>客户名称：{{item.GWAKL004}}</p>
                    <p>商机主题：{{item.GWBGL003}}</p>
                    <p>成交几率：{{item.GWBH031}}</p>
                    <!--<p>商机阶段:{{item.gwavl003}}</p>-->
                    <p>下次拜访日期：{{item.GWBH019}}--{{item.GWBH020}}</p>
                    <p>负责业务员：{{item.NAME}}</p>
                </div>

                <div v-show="other.ORGID&&item.GWBHORIG&&other.ORGID!=item.GWBHORIG" class="mui-card-footer"
                     :class="statueImg(item)">
                    <p>
                        <a href="#" class="wf-font-color wf-define-border-color" @tap.stop="reconfirm(item)"
                           v-show="statueY(item)">取消确认</a>
                        <a href="#" class="wf-sfont-color wf-sborder-color" @tap.stop="confirm(item)"
                           v-show="statueN(item)">确认</a>
                        <a href="#" class="wf-font-color wf-border-color" @tap.stop="del(item)" v-show="statueN(item)">作废</a>
                    </p>
                </div>
            </div>
        </li>
    </ul>
</script>

</body>

</html>